#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdbool.h>
#include<string.h>
//typedef struct Map
//{
//	int key;
//	int conutTime;
//}Map;
bool CheckPermutation(char* s1, char* s2)
{
	int map[26] = { 0 };
	int len1 = strlen(s1);
	int len2 = strlen(s2);
	if (len1 != len2)
		return false;
	for (int i = 0; i < len1; i++)
	{
		map[s1[i] - 'a']++;
	}
	for (int i = 0; i < len2; i++)
	{
		map[s2[i] - 'a']--;
	}
	for (int i = 0; i < 26; i++)
	{
		if (map[i] != 0)
			return false;
	}
	return true;
}
int main()
{
	char str1[] = "abc";
	char str2[] = "bca";
	if (CheckPermutation(str1, str2))
		printf("True\n");
	else
		printf("False\n");
	return 0;
}